package com.mobileseed.weather.data;

public class Weather{
	private ForecastInformation information;
	private CurrentConditions currentConditions;
	private ForecastConditions[] conditions;
	
	public Weather() {
		this.information = new ForecastInformation();
		this.currentConditions = new CurrentConditions();
		this.conditions = new ForecastConditions[4];
		for (int i = 0; i < 4; i++) {
			conditions[i] = new ForecastConditions();
		}
	}

	public ForecastInformation getInformation() {
		return information;
	}

	public void setInformation(ForecastInformation information) {
		this.information = information;
	}

	public CurrentConditions getCurrentConditions() {
		return currentConditions;
	}

	public void setCurrentConditions(CurrentConditions currentConditions) {
		this.currentConditions = currentConditions;
	}

	public ForecastConditions[] getConditions() {
		return conditions;
	}

	public void setConditions(ForecastConditions[] conditions) {
		this.conditions = conditions;
	}
	
	public boolean containsValidInformation() {
		if(currentConditions == null || currentConditions.getCondition() == null)
		{
			return false;
		}
		
		return true;
	}
}
